package main

import (
	"AndroidBlog/controllers"
	"AndroidBlog/models"
	_ "AndroidBlog/routers"
	"fmt"
)

func main() {
	//beego.Run()
	//testmain()
	controllers.DoCrawlCsdn(20)
	//controllers.TestTimeFormat("")
}


func testmain() {
	art := models.Article{
		Title:       "wo11112",
		Author:      "ni",
		Source:      "公众号",
		Link:        "http://www.ba1idu.com",
		CrateTime:   1544976000000,
		Description: "-",
	}
	update := models.ArticleInsertOrUpdate(art)
	fmt.Println("update id=> ", update)

}
